package com.jkc.xh.network.models;

import com.jkc.xh.utils.MD5Util;

/**
 * 注册请求参数
 * Created by zhangbreeze on 2015/12/1.
 */
public class GetSmsCodeRequest {
    public String mobile;
    public int mod;
    public long smsid;
    public String sign;

    public GetSmsCodeRequest(String mobile, int mod, long smsid) {
        this.mobile = mobile;
        this.mod = mod;
        this.smsid = smsid;
        this.sign = MD5Util.MD5(this.mobile + "|" + this.mod);
    }

    /**
     *
     {
     "mobile": "手机号码 字符串 phone 必填",
     "mod": "验证码类型，1=注册，5=绑定银行卡 整数 枚举:1,5 必填",
     "smsid": "通道ID 整数 必填",
     "sign": "签名，生成规则=md5(mobile|mod) 字符串 长度:32 必填"
     }
     */
}
